<?php
require_once("./DButil.php");
$sql = "select p_id,p_name,p_price,p_unit,p_image_url,p_status from t_product ";
$arr = query($sql);
$p = $arr;
header("Content-Type:application/json;charset=utf-8");
echo json_encode($p);
?>